package org.yunshang.supplier.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.yunshang.common.excel.annotation.ExcelDictFormat;
import org.yunshang.common.excel.convert.ExcelDictConvert;
import org.yunshang.supplier.domain.TSupplier;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 供应商信息视图对象 t_supplier
 *
 * @author Lion Li
 * @date 2024-03-29
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TSupplier.class)
public class TSupplierVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelIgnore
    private Long id;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 全称
     */
    @ExcelProperty(value = "全称")
    private String bigName;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String phone;

    /**
     * 网址
     */
    @ExcelProperty(value = "网址")
    private String url;

    /**
     * 联系人
     */
    @ExcelProperty(value = "联系人")
    private String people;

    /**
     * 状态（0=启用，1=禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=启用,1=禁用")
    private String status;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=五金供应商,2=皮料供应商,3=辅料供应商,0=其他")
    private String type;

    /**
     * 付款方式（0=现金，1=月结）
     */
    @ExcelProperty(value = "付款方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=现金,1=月结")
    private String pay;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
